package com.jack.lib

import android.content.Intent
import android.os.Bundle
import com.jack.lib.base.BaseActivity
import com.jack.lib.base.BaseFragment
import com.jack.lib.base.header.HeaderConfigurator
import com.jack.lib.databinding.BbbBinding
import com.jack.lib.ui.widget.AddPhotoView

/**
 * author : chong.huang
 * create : 2022/3/3
 * desc   :
 */
class Test1 : BaseFragment<BbbBinding>() {



    override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
        super.onActivityResult(requestCode, resultCode, data)
    }

    override fun initLayout() {
        binding.addPhotoView.setData(listOf(object : AddPhotoView.IPhoto {
            override fun setPath(path: String?) {

            }
            override fun getPath(): String = "/storage/emulated/0/Android/data/com.jack.lib/files/Pictures/IMG_CMP_108_9601280.jpeg"
        },object : AddPhotoView.IPhoto {
            override fun setPath(path: String?) {

            }
            override fun getPath(): String = "/storage/emulated/0/Android/data/com.jack.lib/files/Pictures/IMG_CMP_108_9601280.jpeg"
        },object : AddPhotoView.IPhoto {
            override fun setPath(path: String?) {

            }
            override fun getPath(): String = "/storage/emulated/0/Android/data/com.jack.lib/files/Pictures/IMG_CMP_108_9601280.jpeg"
        }))
    }
}